#!/system/bin/sh

function get_url_from_github() {
	case "${CURRENT_VM_ARCH}" in
		"arm64")
			LINUX_ZIP=debian-gxde.tar.xz.rootfs
			;;
		# "amd64")
		# 	LINUX_ZIP=deepin-docker-rootfs-amd64.tar.gz
		# 	;;
		*)
			exit_with_msg 5 "运行失败, 不支持的CPU架构: ${CURRENT_VM_ARCH}"
			;;
	esac
	LINUX_TXT="山东大学镜像仓库"
	LINUX_URL=https://mirrors.sdu.edu.cn/GXDE/TGZ/$LINUX_ZIP
	UNZIP_ARG=-xJf
}




# github
if [ ! -f $LINUX_ZIP ]; then
    get_url_from_github
    do_donwload_rootfs
fi
